package com.developerstation.barcode.model;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class CkaTmExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public CkaTmExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andLockedIsNull() {
            addCriterion("_Locked is null");
            return (Criteria) this;
        }

        public Criteria andLockedIsNotNull() {
            addCriterion("_Locked is not null");
            return (Criteria) this;
        }

        public Criteria andLockedEqualTo(Boolean value) {
            addCriterion("_Locked =", value, "locked");
            return (Criteria) this;
        }

        public Criteria andLockedNotEqualTo(Boolean value) {
            addCriterion("_Locked <>", value, "locked");
            return (Criteria) this;
        }

        public Criteria andLockedGreaterThan(Boolean value) {
            addCriterion("_Locked >", value, "locked");
            return (Criteria) this;
        }

        public Criteria andLockedGreaterThanOrEqualTo(Boolean value) {
            addCriterion("_Locked >=", value, "locked");
            return (Criteria) this;
        }

        public Criteria andLockedLessThan(Boolean value) {
            addCriterion("_Locked <", value, "locked");
            return (Criteria) this;
        }

        public Criteria andLockedLessThanOrEqualTo(Boolean value) {
            addCriterion("_Locked <=", value, "locked");
            return (Criteria) this;
        }

        public Criteria andLockedIn(List<Boolean> values) {
            addCriterion("_Locked in", values, "locked");
            return (Criteria) this;
        }

        public Criteria andLockedNotIn(List<Boolean> values) {
            addCriterion("_Locked not in", values, "locked");
            return (Criteria) this;
        }

        public Criteria andLockedBetween(Boolean value1, Boolean value2) {
            addCriterion("_Locked between", value1, value2, "locked");
            return (Criteria) this;
        }

        public Criteria andLockedNotBetween(Boolean value1, Boolean value2) {
            addCriterion("_Locked not between", value1, value2, "locked");
            return (Criteria) this;
        }

        public Criteria andSortkeyIsNull() {
            addCriterion("_SortKey is null");
            return (Criteria) this;
        }

        public Criteria andSortkeyIsNotNull() {
            addCriterion("_SortKey is not null");
            return (Criteria) this;
        }

        public Criteria andSortkeyEqualTo(BigDecimal value) {
            addCriterion("_SortKey =", value, "sortkey");
            return (Criteria) this;
        }

        public Criteria andSortkeyNotEqualTo(BigDecimal value) {
            addCriterion("_SortKey <>", value, "sortkey");
            return (Criteria) this;
        }

        public Criteria andSortkeyGreaterThan(BigDecimal value) {
            addCriterion("_SortKey >", value, "sortkey");
            return (Criteria) this;
        }

        public Criteria andSortkeyGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("_SortKey >=", value, "sortkey");
            return (Criteria) this;
        }

        public Criteria andSortkeyLessThan(BigDecimal value) {
            addCriterion("_SortKey <", value, "sortkey");
            return (Criteria) this;
        }

        public Criteria andSortkeyLessThanOrEqualTo(BigDecimal value) {
            addCriterion("_SortKey <=", value, "sortkey");
            return (Criteria) this;
        }

        public Criteria andSortkeyIn(List<BigDecimal> values) {
            addCriterion("_SortKey in", values, "sortkey");
            return (Criteria) this;
        }

        public Criteria andSortkeyNotIn(List<BigDecimal> values) {
            addCriterion("_SortKey not in", values, "sortkey");
            return (Criteria) this;
        }

        public Criteria andSortkeyBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("_SortKey between", value1, value2, "sortkey");
            return (Criteria) this;
        }

        public Criteria andSortkeyNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("_SortKey not between", value1, value2, "sortkey");
            return (Criteria) this;
        }

        public Criteria andNoIsNull() {
            addCriterion("no is null");
            return (Criteria) this;
        }

        public Criteria andNoIsNotNull() {
            addCriterion("no is not null");
            return (Criteria) this;
        }

        public Criteria andNoEqualTo(String value) {
            addCriterion("no =", value, "no");
            return (Criteria) this;
        }

        public Criteria andNoNotEqualTo(String value) {
            addCriterion("no <>", value, "no");
            return (Criteria) this;
        }

        public Criteria andNoGreaterThan(String value) {
            addCriterion("no >", value, "no");
            return (Criteria) this;
        }

        public Criteria andNoGreaterThanOrEqualTo(String value) {
            addCriterion("no >=", value, "no");
            return (Criteria) this;
        }

        public Criteria andNoLessThan(String value) {
            addCriterion("no <", value, "no");
            return (Criteria) this;
        }

        public Criteria andNoLessThanOrEqualTo(String value) {
            addCriterion("no <=", value, "no");
            return (Criteria) this;
        }

        public Criteria andNoLike(String value) {
            addCriterion("no like", value, "no");
            return (Criteria) this;
        }

        public Criteria andNoNotLike(String value) {
            addCriterion("no not like", value, "no");
            return (Criteria) this;
        }

        public Criteria andNoIn(List<String> values) {
            addCriterion("no in", values, "no");
            return (Criteria) this;
        }

        public Criteria andNoNotIn(List<String> values) {
            addCriterion("no not in", values, "no");
            return (Criteria) this;
        }

        public Criteria andNoBetween(String value1, String value2) {
            addCriterion("no between", value1, value2, "no");
            return (Criteria) this;
        }

        public Criteria andNoNotBetween(String value1, String value2) {
            addCriterion("no not between", value1, value2, "no");
            return (Criteria) this;
        }

        public Criteria andTmErrIsNull() {
            addCriterion("tm_err is null");
            return (Criteria) this;
        }

        public Criteria andTmErrIsNotNull() {
            addCriterion("tm_err is not null");
            return (Criteria) this;
        }

        public Criteria andTmErrEqualTo(String value) {
            addCriterion("tm_err =", value, "tmErr");
            return (Criteria) this;
        }

        public Criteria andTmErrNotEqualTo(String value) {
            addCriterion("tm_err <>", value, "tmErr");
            return (Criteria) this;
        }

        public Criteria andTmErrGreaterThan(String value) {
            addCriterion("tm_err >", value, "tmErr");
            return (Criteria) this;
        }

        public Criteria andTmErrGreaterThanOrEqualTo(String value) {
            addCriterion("tm_err >=", value, "tmErr");
            return (Criteria) this;
        }

        public Criteria andTmErrLessThan(String value) {
            addCriterion("tm_err <", value, "tmErr");
            return (Criteria) this;
        }

        public Criteria andTmErrLessThanOrEqualTo(String value) {
            addCriterion("tm_err <=", value, "tmErr");
            return (Criteria) this;
        }

        public Criteria andTmErrLike(String value) {
            addCriterion("tm_err like", value, "tmErr");
            return (Criteria) this;
        }

        public Criteria andTmErrNotLike(String value) {
            addCriterion("tm_err not like", value, "tmErr");
            return (Criteria) this;
        }

        public Criteria andTmErrIn(List<String> values) {
            addCriterion("tm_err in", values, "tmErr");
            return (Criteria) this;
        }

        public Criteria andTmErrNotIn(List<String> values) {
            addCriterion("tm_err not in", values, "tmErr");
            return (Criteria) this;
        }

        public Criteria andTmErrBetween(String value1, String value2) {
            addCriterion("tm_err between", value1, value2, "tmErr");
            return (Criteria) this;
        }

        public Criteria andTmErrNotBetween(String value1, String value2) {
            addCriterion("tm_err not between", value1, value2, "tmErr");
            return (Criteria) this;
        }

        public Criteria andTmUseIsNull() {
            addCriterion("tm_use is null");
            return (Criteria) this;
        }

        public Criteria andTmUseIsNotNull() {
            addCriterion("tm_use is not null");
            return (Criteria) this;
        }

        public Criteria andTmUseEqualTo(String value) {
            addCriterion("tm_use =", value, "tmUse");
            return (Criteria) this;
        }

        public Criteria andTmUseNotEqualTo(String value) {
            addCriterion("tm_use <>", value, "tmUse");
            return (Criteria) this;
        }

        public Criteria andTmUseGreaterThan(String value) {
            addCriterion("tm_use >", value, "tmUse");
            return (Criteria) this;
        }

        public Criteria andTmUseGreaterThanOrEqualTo(String value) {
            addCriterion("tm_use >=", value, "tmUse");
            return (Criteria) this;
        }

        public Criteria andTmUseLessThan(String value) {
            addCriterion("tm_use <", value, "tmUse");
            return (Criteria) this;
        }

        public Criteria andTmUseLessThanOrEqualTo(String value) {
            addCriterion("tm_use <=", value, "tmUse");
            return (Criteria) this;
        }

        public Criteria andTmUseLike(String value) {
            addCriterion("tm_use like", value, "tmUse");
            return (Criteria) this;
        }

        public Criteria andTmUseNotLike(String value) {
            addCriterion("tm_use not like", value, "tmUse");
            return (Criteria) this;
        }

        public Criteria andTmUseIn(List<String> values) {
            addCriterion("tm_use in", values, "tmUse");
            return (Criteria) this;
        }

        public Criteria andTmUseNotIn(List<String> values) {
            addCriterion("tm_use not in", values, "tmUse");
            return (Criteria) this;
        }

        public Criteria andTmUseBetween(String value1, String value2) {
            addCriterion("tm_use between", value1, value2, "tmUse");
            return (Criteria) this;
        }

        public Criteria andTmUseNotBetween(String value1, String value2) {
            addCriterion("tm_use not between", value1, value2, "tmUse");
            return (Criteria) this;
        }

        public Criteria andCreateDateIsNull() {
            addCriterion("create_date is null");
            return (Criteria) this;
        }

        public Criteria andCreateDateIsNotNull() {
            addCriterion("create_date is not null");
            return (Criteria) this;
        }

        public Criteria andCreateDateEqualTo(Date value) {
            addCriterion("create_date =", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotEqualTo(Date value) {
            addCriterion("create_date <>", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateGreaterThan(Date value) {
            addCriterion("create_date >", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateGreaterThanOrEqualTo(Date value) {
            addCriterion("create_date >=", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateLessThan(Date value) {
            addCriterion("create_date <", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateLessThanOrEqualTo(Date value) {
            addCriterion("create_date <=", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateIn(List<Date> values) {
            addCriterion("create_date in", values, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotIn(List<Date> values) {
            addCriterion("create_date not in", values, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateBetween(Date value1, Date value2) {
            addCriterion("create_date between", value1, value2, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotBetween(Date value1, Date value2) {
            addCriterion("create_date not between", value1, value2, "createDate");
            return (Criteria) this;
        }

        public Criteria andOperatorIsNull() {
            addCriterion("operator is null");
            return (Criteria) this;
        }

        public Criteria andOperatorIsNotNull() {
            addCriterion("operator is not null");
            return (Criteria) this;
        }

        public Criteria andOperatorEqualTo(String value) {
            addCriterion("operator =", value, "operator");
            return (Criteria) this;
        }

        public Criteria andOperatorNotEqualTo(String value) {
            addCriterion("operator <>", value, "operator");
            return (Criteria) this;
        }

        public Criteria andOperatorGreaterThan(String value) {
            addCriterion("operator >", value, "operator");
            return (Criteria) this;
        }

        public Criteria andOperatorGreaterThanOrEqualTo(String value) {
            addCriterion("operator >=", value, "operator");
            return (Criteria) this;
        }

        public Criteria andOperatorLessThan(String value) {
            addCriterion("operator <", value, "operator");
            return (Criteria) this;
        }

        public Criteria andOperatorLessThanOrEqualTo(String value) {
            addCriterion("operator <=", value, "operator");
            return (Criteria) this;
        }

        public Criteria andOperatorLike(String value) {
            addCriterion("operator like", value, "operator");
            return (Criteria) this;
        }

        public Criteria andOperatorNotLike(String value) {
            addCriterion("operator not like", value, "operator");
            return (Criteria) this;
        }

        public Criteria andOperatorIn(List<String> values) {
            addCriterion("operator in", values, "operator");
            return (Criteria) this;
        }

        public Criteria andOperatorNotIn(List<String> values) {
            addCriterion("operator not in", values, "operator");
            return (Criteria) this;
        }

        public Criteria andOperatorBetween(String value1, String value2) {
            addCriterion("operator between", value1, value2, "operator");
            return (Criteria) this;
        }

        public Criteria andOperatorNotBetween(String value1, String value2) {
            addCriterion("operator not between", value1, value2, "operator");
            return (Criteria) this;
        }

        public Criteria andWwwIsNull() {
            addCriterion("www is null");
            return (Criteria) this;
        }

        public Criteria andWwwIsNotNull() {
            addCriterion("www is not null");
            return (Criteria) this;
        }

        public Criteria andWwwEqualTo(String value) {
            addCriterion("www =", value, "www");
            return (Criteria) this;
        }

        public Criteria andWwwNotEqualTo(String value) {
            addCriterion("www <>", value, "www");
            return (Criteria) this;
        }

        public Criteria andWwwGreaterThan(String value) {
            addCriterion("www >", value, "www");
            return (Criteria) this;
        }

        public Criteria andWwwGreaterThanOrEqualTo(String value) {
            addCriterion("www >=", value, "www");
            return (Criteria) this;
        }

        public Criteria andWwwLessThan(String value) {
            addCriterion("www <", value, "www");
            return (Criteria) this;
        }

        public Criteria andWwwLessThanOrEqualTo(String value) {
            addCriterion("www <=", value, "www");
            return (Criteria) this;
        }

        public Criteria andWwwLike(String value) {
            addCriterion("www like", value, "www");
            return (Criteria) this;
        }

        public Criteria andWwwNotLike(String value) {
            addCriterion("www not like", value, "www");
            return (Criteria) this;
        }

        public Criteria andWwwIn(List<String> values) {
            addCriterion("www in", values, "www");
            return (Criteria) this;
        }

        public Criteria andWwwNotIn(List<String> values) {
            addCriterion("www not in", values, "www");
            return (Criteria) this;
        }

        public Criteria andWwwBetween(String value1, String value2) {
            addCriterion("www between", value1, value2, "www");
            return (Criteria) this;
        }

        public Criteria andWwwNotBetween(String value1, String value2) {
            addCriterion("www not between", value1, value2, "www");
            return (Criteria) this;
        }

        public Criteria andATmIsNull() {
            addCriterion("a_tm is null");
            return (Criteria) this;
        }

        public Criteria andATmIsNotNull() {
            addCriterion("a_tm is not null");
            return (Criteria) this;
        }

        public Criteria andATmEqualTo(String value) {
            addCriterion("a_tm =", value, "aTm");
            return (Criteria) this;
        }

        public Criteria andATmNotEqualTo(String value) {
            addCriterion("a_tm <>", value, "aTm");
            return (Criteria) this;
        }

        public Criteria andATmGreaterThan(String value) {
            addCriterion("a_tm >", value, "aTm");
            return (Criteria) this;
        }

        public Criteria andATmGreaterThanOrEqualTo(String value) {
            addCriterion("a_tm >=", value, "aTm");
            return (Criteria) this;
        }

        public Criteria andATmLessThan(String value) {
            addCriterion("a_tm <", value, "aTm");
            return (Criteria) this;
        }

        public Criteria andATmLessThanOrEqualTo(String value) {
            addCriterion("a_tm <=", value, "aTm");
            return (Criteria) this;
        }

        public Criteria andATmLike(String value) {
            addCriterion("a_tm like", value, "aTm");
            return (Criteria) this;
        }

        public Criteria andATmNotLike(String value) {
            addCriterion("a_tm not like", value, "aTm");
            return (Criteria) this;
        }

        public Criteria andATmIn(List<String> values) {
            addCriterion("a_tm in", values, "aTm");
            return (Criteria) this;
        }

        public Criteria andATmNotIn(List<String> values) {
            addCriterion("a_tm not in", values, "aTm");
            return (Criteria) this;
        }

        public Criteria andATmBetween(String value1, String value2) {
            addCriterion("a_tm between", value1, value2, "aTm");
            return (Criteria) this;
        }

        public Criteria andATmNotBetween(String value1, String value2) {
            addCriterion("a_tm not between", value1, value2, "aTm");
            return (Criteria) this;
        }

        public Criteria andPostedIsNull() {
            addCriterion("posted is null");
            return (Criteria) this;
        }

        public Criteria andPostedIsNotNull() {
            addCriterion("posted is not null");
            return (Criteria) this;
        }

        public Criteria andPostedEqualTo(Boolean value) {
            addCriterion("posted =", value, "posted");
            return (Criteria) this;
        }

        public Criteria andPostedNotEqualTo(Boolean value) {
            addCriterion("posted <>", value, "posted");
            return (Criteria) this;
        }

        public Criteria andPostedGreaterThan(Boolean value) {
            addCriterion("posted >", value, "posted");
            return (Criteria) this;
        }

        public Criteria andPostedGreaterThanOrEqualTo(Boolean value) {
            addCriterion("posted >=", value, "posted");
            return (Criteria) this;
        }

        public Criteria andPostedLessThan(Boolean value) {
            addCriterion("posted <", value, "posted");
            return (Criteria) this;
        }

        public Criteria andPostedLessThanOrEqualTo(Boolean value) {
            addCriterion("posted <=", value, "posted");
            return (Criteria) this;
        }

        public Criteria andPostedIn(List<Boolean> values) {
            addCriterion("posted in", values, "posted");
            return (Criteria) this;
        }

        public Criteria andPostedNotIn(List<Boolean> values) {
            addCriterion("posted not in", values, "posted");
            return (Criteria) this;
        }

        public Criteria andPostedBetween(Boolean value1, Boolean value2) {
            addCriterion("posted between", value1, value2, "posted");
            return (Criteria) this;
        }

        public Criteria andPostedNotBetween(Boolean value1, Boolean value2) {
            addCriterion("posted not between", value1, value2, "posted");
            return (Criteria) this;
        }

        public Criteria andPostedDateIsNull() {
            addCriterion("posted_date is null");
            return (Criteria) this;
        }

        public Criteria andPostedDateIsNotNull() {
            addCriterion("posted_date is not null");
            return (Criteria) this;
        }

        public Criteria andPostedDateEqualTo(Date value) {
            addCriterion("posted_date =", value, "postedDate");
            return (Criteria) this;
        }

        public Criteria andPostedDateNotEqualTo(Date value) {
            addCriterion("posted_date <>", value, "postedDate");
            return (Criteria) this;
        }

        public Criteria andPostedDateGreaterThan(Date value) {
            addCriterion("posted_date >", value, "postedDate");
            return (Criteria) this;
        }

        public Criteria andPostedDateGreaterThanOrEqualTo(Date value) {
            addCriterion("posted_date >=", value, "postedDate");
            return (Criteria) this;
        }

        public Criteria andPostedDateLessThan(Date value) {
            addCriterion("posted_date <", value, "postedDate");
            return (Criteria) this;
        }

        public Criteria andPostedDateLessThanOrEqualTo(Date value) {
            addCriterion("posted_date <=", value, "postedDate");
            return (Criteria) this;
        }

        public Criteria andPostedDateIn(List<Date> values) {
            addCriterion("posted_date in", values, "postedDate");
            return (Criteria) this;
        }

        public Criteria andPostedDateNotIn(List<Date> values) {
            addCriterion("posted_date not in", values, "postedDate");
            return (Criteria) this;
        }

        public Criteria andPostedDateBetween(Date value1, Date value2) {
            addCriterion("posted_date between", value1, value2, "postedDate");
            return (Criteria) this;
        }

        public Criteria andPostedDateNotBetween(Date value1, Date value2) {
            addCriterion("posted_date not between", value1, value2, "postedDate");
            return (Criteria) this;
        }

        public Criteria andCkIsNull() {
            addCriterion("ck is null");
            return (Criteria) this;
        }

        public Criteria andCkIsNotNull() {
            addCriterion("ck is not null");
            return (Criteria) this;
        }

        public Criteria andCkEqualTo(String value) {
            addCriterion("ck =", value, "ck");
            return (Criteria) this;
        }

        public Criteria andCkNotEqualTo(String value) {
            addCriterion("ck <>", value, "ck");
            return (Criteria) this;
        }

        public Criteria andCkGreaterThan(String value) {
            addCriterion("ck >", value, "ck");
            return (Criteria) this;
        }

        public Criteria andCkGreaterThanOrEqualTo(String value) {
            addCriterion("ck >=", value, "ck");
            return (Criteria) this;
        }

        public Criteria andCkLessThan(String value) {
            addCriterion("ck <", value, "ck");
            return (Criteria) this;
        }

        public Criteria andCkLessThanOrEqualTo(String value) {
            addCriterion("ck <=", value, "ck");
            return (Criteria) this;
        }

        public Criteria andCkLike(String value) {
            addCriterion("ck like", value, "ck");
            return (Criteria) this;
        }

        public Criteria andCkNotLike(String value) {
            addCriterion("ck not like", value, "ck");
            return (Criteria) this;
        }

        public Criteria andCkIn(List<String> values) {
            addCriterion("ck in", values, "ck");
            return (Criteria) this;
        }

        public Criteria andCkNotIn(List<String> values) {
            addCriterion("ck not in", values, "ck");
            return (Criteria) this;
        }

        public Criteria andCkBetween(String value1, String value2) {
            addCriterion("ck between", value1, value2, "ck");
            return (Criteria) this;
        }

        public Criteria andCkNotBetween(String value1, String value2) {
            addCriterion("ck not between", value1, value2, "ck");
            return (Criteria) this;
        }

        public Criteria andAtmQuantityIsNull() {
            addCriterion("atm_quantity is null");
            return (Criteria) this;
        }

        public Criteria andAtmQuantityIsNotNull() {
            addCriterion("atm_quantity is not null");
            return (Criteria) this;
        }

        public Criteria andAtmQuantityEqualTo(Integer value) {
            addCriterion("atm_quantity =", value, "atmQuantity");
            return (Criteria) this;
        }

        public Criteria andAtmQuantityNotEqualTo(Integer value) {
            addCriterion("atm_quantity <>", value, "atmQuantity");
            return (Criteria) this;
        }

        public Criteria andAtmQuantityGreaterThan(Integer value) {
            addCriterion("atm_quantity >", value, "atmQuantity");
            return (Criteria) this;
        }

        public Criteria andAtmQuantityGreaterThanOrEqualTo(Integer value) {
            addCriterion("atm_quantity >=", value, "atmQuantity");
            return (Criteria) this;
        }

        public Criteria andAtmQuantityLessThan(Integer value) {
            addCriterion("atm_quantity <", value, "atmQuantity");
            return (Criteria) this;
        }

        public Criteria andAtmQuantityLessThanOrEqualTo(Integer value) {
            addCriterion("atm_quantity <=", value, "atmQuantity");
            return (Criteria) this;
        }

        public Criteria andAtmQuantityIn(List<Integer> values) {
            addCriterion("atm_quantity in", values, "atmQuantity");
            return (Criteria) this;
        }

        public Criteria andAtmQuantityNotIn(List<Integer> values) {
            addCriterion("atm_quantity not in", values, "atmQuantity");
            return (Criteria) this;
        }

        public Criteria andAtmQuantityBetween(Integer value1, Integer value2) {
            addCriterion("atm_quantity between", value1, value2, "atmQuantity");
            return (Criteria) this;
        }

        public Criteria andAtmQuantityNotBetween(Integer value1, Integer value2) {
            addCriterion("atm_quantity not between", value1, value2, "atmQuantity");
            return (Criteria) this;
        }

        public Criteria andTypeIsNull() {
            addCriterion("type is null");
            return (Criteria) this;
        }

        public Criteria andTypeIsNotNull() {
            addCriterion("type is not null");
            return (Criteria) this;
        }

        public Criteria andTypeEqualTo(String value) {
            addCriterion("type =", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotEqualTo(String value) {
            addCriterion("type <>", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThan(String value) {
            addCriterion("type >", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThanOrEqualTo(String value) {
            addCriterion("type >=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThan(String value) {
            addCriterion("type <", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThanOrEqualTo(String value) {
            addCriterion("type <=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLike(String value) {
            addCriterion("type like", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotLike(String value) {
            addCriterion("type not like", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeIn(List<String> values) {
            addCriterion("type in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotIn(List<String> values) {
            addCriterion("type not in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeBetween(String value1, String value2) {
            addCriterion("type between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotBetween(String value1, String value2) {
            addCriterion("type not between", value1, value2, "type");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}